/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-05-22
 * Time: 21:59
 */
public class Test3 {
    public static void main(String[] args) {
        String s1 = new String("hi");
        String s2 = new String("hi");
        String s3 = new String("ha");
        String s4 = s1;

        System.out.println(s1 == s2);
        System.out.println(s2 == s3);
        System.out.println(s1 == s4);
    }
}
